

class InventoryTransfer {
  String trailerNumber;
  String outboundDate;
  String obLpn;
  String ibLpn;
  int totalQty;
  int completeQty;
  List<Lpns> lpns;

  InventoryTransfer({
    this.trailerNumber,
    this.outboundDate,
    this.obLpn,
    this.ibLpn,
    this.totalQty,
    this.completeQty,
    this.lpns,
  });

  factory InventoryTransfer.fromJson(Map<String, dynamic> json) {
    return InventoryTransfer(
        trailerNumber: json["trailerNumber"],
        outboundDate: json["outboundDate"],
        obLpn: json["obLpn"],
        ibLpn: json["ibLpn"],
        totalQty: json["totalQty"],
        completeQty: json["completeQty"],
        lpns: json['lpns'] == null ? null : (new List<dynamic>.from(json['lpns']).map((userJson) => Lpns.fromJson(userJson)).toList()));
  }
}

class Lpns {
  String obLpn;
  String ibLpn;

  Lpns({
    this.obLpn,
    this.ibLpn,
  });

  factory Lpns.fromJson(Map<String, dynamic> json) {
    return Lpns(
      obLpn: json["obLpn"],
      ibLpn: json["ibLpn"],
    );
  }
}

class InventoryTransferQr  {
  String trailerNumber;
  String outboundDate;
  String obLpn;
  String ibLpn;

  Map<String, dynamic> toJson() {
    return {
      "trailerNumber": this.trailerNumber,
      "outboundDate": this.outboundDate,
      "obLpn": this.obLpn,
      "ibLpn": this.ibLpn,
    };
  }
}
